package cn.gemiman.daoyi.module.cms.controller.admin.appsitecomment.vo;

import cn.gemiman.daoyi.module.cms.vo.WithLikeBaseVO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import cn.gemiman.daoyi.framework.excel.core.annotations.DictFormat;
import cn.gemiman.daoyi.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 站点评论 Response VO")
@Data
@ExcelIgnoreUnannotated
public class AppSiteCommentRespVO extends WithLikeBaseVO<Long> {

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "28605")
    @ExcelProperty("编号")
    private Long id;

    @Schema(description = "用户类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @ExcelProperty("用户类型")
    private Integer userType;

    @Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "26246")
    @ExcelProperty("用户编号")
    private Long userId;

    @Schema(description = "用户昵称", example = "王五")
    @ExcelProperty("用户昵称")
    private String userNickname;

    @Schema(description = "用户头像", example = "https://www.iocoder.cn/xxx.png")
    private String userAvatar;

    @Schema(description = "站点编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "19714")
    @ExcelProperty("站点编号")
    private Long appSiteId;

    @Schema(description = "站点标识", requiredMode = Schema.RequiredMode.REQUIRED, example = "4541")
    @ExcelProperty("站点标识")
    private String appId;

    @Schema(description = "栏目编号", example = "4827")
    @ExcelProperty("栏目编号")
    private Long categoryId;

    @Schema(description = "文章编号", example = "15039")
    @ExcelProperty("文章编号")
    private Long articleId;
    /**
     * 说说编号
     */
    @Schema(description = "说说编号", example = "15039")
    @ExcelProperty("说说编号")
    private Long talkId;
    /**
     * 留言编号
     */
    @Schema(description = "留言编号", example = "15039")
    @ExcelProperty("留言编号")
    private Long messageId;

    @Schema(description = "父级编号", example = "4654")
    @ExcelProperty("父级编号")
    private Long parentId;

    @Schema(description = "父级")
    private AppSiteCommentRespVO parent;

    @Schema(description = "父级编号集")
    private List<Long> parentIds;

    @Schema(description = "内容")
    @ExcelProperty("内容")
    private String commentContent;

    @Schema(description = "评论状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty(value = "评论状态", converter = DictConvert.class)
    @DictFormat("common_status") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer status;

    @Schema(description = "审核状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @ExcelProperty(value = "审核状态", converter = DictConvert.class)
    @DictFormat("bpm_process_instance_status") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer approveStatus;

    @Schema(description = "排序")
    @ExcelProperty("排序")
    private Long sort;

    @Schema(description = "创建者ip")
    @ExcelProperty("创建者ip")
    private String creatorIp;

    @Schema(description = "创建者城市")
    @ExcelProperty("创建者城市")
    private String creatorCity;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "点赞数量")
    private Long thumbsUpTimes = 0L;
}
